package com.caozhi.mspeoject.nb_distributed_id.controller;

import com.caozhi.mspeoject.nb_distributed_id.service.CreatedDistributeId;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Log4j2
@RestController
@RequestMapping("distributeID")
public class DistributedId {
    @Autowired
    private CreatedDistributeId createdDistributeId;

    @GetMapping("get")
    public Long get() {
        return createdDistributeId.get();
    }
}
